﻿@model CodeSaude.Application.ViewModels.ProntuarioViewModel

@{
    Layout = null;
}

<div class="modal-dialog" style="width: 85%;">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Fechar"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">@ViewBag.Title</h4>
        </div>

        @using (Html.BeginForm("Create", "Prontuario", FormMethod.Post))
        {
            <div class="modal-body">
                <div class="form-group">
                    @Html.HiddenFor(m => m.ProntuarioId)
                    @*@Html.HiddenFor(m => m.IdEspecialidade)*@
                    @Html.AntiForgeryToken()

                    <div class="panel panel-default">
                        <div class="panel-heading" style="font-weight: bold;">Dados da Pessoa</div>
                        <div class="panel-body">
                            <div style="float:left; margin-right: 20px;">
                                @Html.LabelFor(model => model.NomePessoa, htmlAttributes: new { @class = "control-label" })
                                @Html.EditorFor(model => model.NomePessoa, new { htmlAttributes = new { @class = "form-control input-xxlarge" } })
                                @Html.ValidationMessageFor(model => model.NomePessoa)
                            </div>
                            <div style="float:left; margin-right: 20px;">
                                @Html.LabelFor(model => model.IdEspecialidade, htmlAttributes: new { @class = "control-label" })
                                @Html.DropDownListFor(model => model.IdEspecialidade, Model.ListaEspecialidades, "Selecione", new { @class = "form-control input-medium", @id = "ddlEspecialidade" })
                                @Html.ValidationMessageFor(model => model.IdEspecialidade)
                            </div>
                            <div style="float:left; margin-right: 20px;">
                                @Html.LabelFor(model => model.IdPrioridade, htmlAttributes: new { @class = "control-label" })
                                @Html.DropDownListFor(model => model.IdPrioridade, Model.ListaPrioridades, "Selecione", new { @class = "form-control input-medium", @id = "ddlPrioridade" })
                                @Html.ValidationMessageFor(model => model.IdPrioridade)
                            </div>
                            <div>
                                @Html.LabelFor(model => model.IdDestino, htmlAttributes: new { @class = "control-label" })
                                @Html.DropDownListFor(model => model.IdDestino, Model.ListaDestinos, "Selecione", new { @class = "form-control input-medium", @id = "ddlDestino" })
                            </div>
                        </div>
                    </div>

                    <div class="panel panel-default">
                        <div class="panel-heading" style="font-weight: bold;">Avaliação da Pessoa</div>
                        <div class="panel-body">
                            <div style="float:left; margin-right: 40px;">
                                @Html.Label("Pesso(Kg)")
                                @Html.EditorFor(model => model.ProntuarioAvaliacao.PesoAvaliacao, new { htmlAttributes = new { @class = "form-control input-mini" } })
                            </div>
                            <div style="float:left; margin-right: 40px;">
                                @Html.Label("Altura(m)")
                                @Html.EditorFor(model => model.ProntuarioAvaliacao.AlturaAvaliacao, new { htmlAttributes = new { @class = "form-control input-mini apenasNumerosDecimal" } })
                            </div>
                            <div style="float:left; margin-right: 40px;">
                                @Html.Label("Pressão Arterial(mmHg)")
                                <div class="form-inline">
                                    @Html.EditorFor(model => model.ProntuarioAvaliacao.PressaoMinAvaliacao, new { htmlAttributes = new { @class = "form-control input", @style = "width: 60px !important;" } })
                                    /
                                    @Html.EditorFor(model => model.ProntuarioAvaliacao.PressaoMaxAvaliacao, new { htmlAttributes = new { @class = "form-control input", @style = "width: 60px !important;" } })
                                </div>
                            </div>
                            <div style="float:left; margin-right: 40px;">
                                @Html.Label("Pulso(bpm)")
                                @Html.EditorFor(model => model.ProntuarioAvaliacao.PulsoAvaliacao, new { htmlAttributes = new { @class = "form-control input-mini" } })
                            </div>
                            <div style="float:left; margin-right: 40px;">
                                @Html.Label("FR(irpm)")
                                @Html.EditorFor(model => model.ProntuarioAvaliacao.FrequenciaRespiratoriaAvaliacao, new { htmlAttributes = new { @class = "form-control input-mini" } })
                            </div>
                            <div style="float:left; margin-right: 40px;">
                                @Html.Label("Temperatura(°C)")
                                @Html.EditorFor(model => model.ProntuarioAvaliacao.TemperaturaAvaliacao, new { htmlAttributes = new { @class = "form-control input-mini" } })
                            </div>
                            <div style="float:left; margin-right: 40px;">
                                @Html.Label("SAT O2(%)")
                                @Html.EditorFor(model => model.ProntuarioAvaliacao.SatOxigAvaliacao, new { htmlAttributes = new { @class = "form-control input-mini" } })
                            </div>
                            <div style="float:left; margin-right: 40px;">
                                @Html.Label("HGT(mg/dl)")
                                @Html.EditorFor(model => model.ProntuarioAvaliacao.HemoglocoseAvaliacao, new { htmlAttributes = new { @class = "form-control input-mini" } })
                            </div>
                        </div>
                    </div>

                    <div class="panel panel-default">
                        <div class="panel-heading" style="font-weight: bold;">Escala de Dor</div>
                        <div class="panel-body">
                            <div style="margin-right: 30px; float:left;">
                                @Html.RadioButtonFor(model => model.IdEscalaDor, 1)
                                <img src="~/images/smile-1.png" />
                                @Html.Label("(0-1)")
                            </div>

                            <div style="margin-right: 30px; float:left;">
                                @Html.RadioButtonFor(model => model.IdEscalaDor, 2)
                                <img src="~/images/smile-2.png" />
                                @Html.Label("(2-3)")
                            </div>
                            <div style="margin-right: 30px; float:left;">
                                @Html.RadioButtonFor(model => model.IdEscalaDor, 3)
                                <img src="~/images/smile-3.png" />
                                @Html.Label("(4-6)")
                            </div>
                            <div style="margin-right: 30px; float:left;">
                                @Html.RadioButtonFor(model => model.IdEscalaDor, 4)
                                <img src="~/images/smile-4.png" />
                                @Html.Label("(7-8)")
                            </div>
                            <div>
                                @Html.RadioButtonFor(model => model.IdEscalaDor, 5)
                                <img src="~/images/smile-5.png" />
                                @Html.Label("(9-10)")
                            </div>
                        </div>
                    </div>
                </div>
            </div>


            <div class="modal-footer">
                <input type="submit" value="Adicionar" class="btn btn-primary" />
                <input type="button" value="Cancelar" class="btn btn-default" data-dismiss="modal" />
            </div>
        }
    </div>
</div>

